package com.example.weather

import com.example.library_base.util.TransformUtil
import com.example.weather.girl.GirlModel
import org.junit.Rule
import org.junit.Test

//@RunWith(Parameterized::class)
class TransformUtilTest {

    @get:Rule
    var rule: MyRule = MyRule()

    val jsonStr = "[{\'imgurl\':\'http://img5.adesk.com/5fee62b40422087bb13b5c28\'},{\'imgurl\':\'http://img5.adesk.com/5fffdfd631f6133d317ee946\'},{\'imgurl\':\'http://img5.adesk.com/6073f80ce7bce775811a34aa\'},{\'imgurl\':\'http://img5.adesk.com/6022a281e7bce75a5207338f\'},{\'imgurl\':\'http://img5.adesk.com/605455c5e7bce72d8e2dc7c4\'},{\'imgurl\':\'http://img5.adesk.com/5fee625ac8cfb778f2b446c4\'},{\'imgurl\':\'http://img5.adesk.com/5fffdfabe7bce752fca37892\'},{\'imgurl\':\'http://img5.adesk.com/604b36f6e7bce735f4129f7f\'},{\'imgurl\':\'http://img5.adesk.com/6066f5bde7bce775adc5ae19\'},{\'imgurl\':\'http://img5.adesk.com/5fffdf24e7bce77ec969e37c\'}]"

//    @Parameterized.Parameters
//    fun primeList(): Collection{
//        return Arrays.asList()
//    }

    @Test
    fun trans_to_list() {
        val list = TransformUtil.transAnyToList<GirlModel>(jsonStr)
        println(list.toString())
    }
}